<?


require_once  $_SERVER['DOCUMENT_ROOT']."/../_lib/base/common.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.template.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.holidays.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.holiday_references.php";
require_once SITE_ROOT_PATH."/_lib/classes/class.user_auth.php";

	// See if user is logged in 
	$user_auth = new user_auth();
	$user_auth->user_auth_bookings();

	// Classes
	$holidays = new holidays();
	$holiday_references = new holiday_references();
	
	//$errors = $bookings->validate_reference_search($_REQUEST)
	$holiday_values = $holiday_references->search_holiday_reference($_GET);

	$request = $holidays->create_cho_query($holiday_values);
	
	echo $request;
	
	$response = array();
	$response = $holidays->connection_sabs($request,false);
	
	echo $response;

?>